home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip Kasım 2003.iso / prog / openoff / f_0319 / xlang.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-04-04  |  12.3 KB  |  306 lines

  1. /*************************************************************************
  2.  *
  3.  *  $RCSfile: lang.hxx,v $
  4.  *
  5.  *  $Revision: 1.5.12.1 $
  6.  *
  7.  *  last change: $Author: vg $ $Date: 2003/02/06 12:06:36 $
  8.  *
  9.  *  The Contents of this file are made available subject to the terms of
  10.  *  either of the following licenses
  11.  *
  12.  *         - GNU Lesser General Public License Version 2.1
  13.  *         - Sun Industry Standards Source License Version 1.1
  14.  *
  15.  *  Sun Microsystems Inc., October, 2000
  16.  *
  17.  *  GNU Lesser General Public License Version 2.1
  18.  *  =============================================
  19.  *  Copyright 2000 by Sun Microsystems, Inc.
  20.  *  901 San Antonio Road, Palo Alto, CA 94303, USA
  21.  *
  22.  *  This library is free software; you can redistribute it and/or
  23.  *  modify it under the terms of the GNU Lesser General Public
  24.  *  License version 2.1, as published by the Free Software Foundation.
  25.  *
  26.  *  This library is distributed in the hope that it will be useful,
  27.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  28.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  29.  *  Lesser General Public License for more details.
  30.  *
  31.  *  You should have received a copy of the GNU Lesser General Public
  32.  *  License along with this library; if not, write to the Free Software
  33.  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  34.  *  MA  02111-1307  USA
  35.  *
  36.  *
  37.  *  Sun Industry Standards Source License Version 1.1
  38.  *  =================================================
  39.  *  The contents of this file are subject to the Sun Industry Standards
  40.  *  Source License Version 1.1 (the "License"); You may not use this file
  41.  *  except in compliance with the License. You may obtain a copy of the
  42.  *  License at http://www.openoffice.org/license.html.
  43.  *
  44.  *  Software provided under this License is provided on an "AS IS" basis,
  45.  *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
  46.  *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
  47.  *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
  48.  *  See the License for the specific provisions governing your rights and
  49.  *  obligations concerning the Software.
  50.  *
  51.  *  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
  52.  *
  53.  *  Copyright: 2000 by Sun Microsystems, Inc.
  54.  *
  55.  *  All Rights Reserved.
  56.  *
  57.  *  Contributor(s): _______________________________________
  58.  *
  59.  *
  60.  ************************************************************************/
  61.  
  62. #ifndef _LANG_HXX
  63. #define _LANG_HXX
  64.  
  65. /**
  66.    These are MS LANGIDs, the lower 10 bits (mask 0x03ff, values below 0x0400
  67.    aren't real locale IDs) represent the primary language ID, the upper 6 bits
  68.    represent the sublanguage ID, which in most cases together with the primary
  69.    language simply designates a country. A LANGID is constructed by
  70.    UINT16 nLangID = ((((UINT16)(SubLangId)) << 10) | (UINT16)(PriLangId));
  71.  
  72.    A user-defined primary language ID is a value in the range 0x0200 to 0x03ff.
  73.    All other values are reserved for Windows system use.
  74.  
  75.    A user-defined sublanguage identifier is a value in the range 0x20 to 0x3f.
  76.    All other values are reserved for Windows system use.
  77.    If there is no sublanguage ID for a primary language ID, use SUBLANG_DEFAULT
  78.    (0x01, which shifted to the left by 10 bits results in the frequently seen
  79.    0x0400).
  80.  
  81.    For further information please see include/winnt.h of a recent MSDEV version
  82.    and the following web pages.
  83.  
  84.    Table of Language Identifiers
  85.    http://msdn.microsoft.com/library/en-us/intl/nls_238z.asp
  86.  
  87.    Primary Language Identifiers
  88.    http://msdn.microsoft.com/library/en-us/intl/nls_61df.asp
  89.  
  90.    SubLanguage Identifiers
  91.    http://msdn.microsoft.com/library/en-us/intl/nls_19ir.asp
  92.  
  93.    WD2000: Supported Language ID Reference Numbers (LCID)
  94.    http://support.microsoft.com/default.aspx?scid=KB;en-us;q221435
  95.  */
  96.  
  97. typedef unsigned short LanguageType;
  98.  
  99. #define LANGUAGE_DONTKNOW                    0x03FF
  100. #define LANGUAGE_NONE                        0x00FF
  101. #define LANGUAGE_SYSTEM                     0x0000
  102. #define LANGUAGE_AFRIKAANS                    0x0436
  103. #define LANGUAGE_ALBANIAN                    0x041C
  104. #define LANGUAGE_ARABIC                     0x0001  /* primary only, not a locale! */
  105. #define LANGUAGE_ARABIC_SAUDI_ARABIA        0x0401
  106. #define LANGUAGE_ARABIC_IRAQ                0x0801
  107. #define LANGUAGE_ARABIC_EGYPT                0x0C01
  108. #define LANGUAGE_ARABIC_LIBYA                0x1001
  109. #define LANGUAGE_ARABIC_ALGERIA             0x1401
  110. #define LANGUAGE_ARABIC_MOROCCO             0x1801
  111. #define LANGUAGE_ARABIC_TUNISIA             0x1C01
  112. #define LANGUAGE_ARABIC_OMAN                0x2001
  113. #define LANGUAGE_ARABIC_YEMEN                0x2401
  114. #define LANGUAGE_ARABIC_SYRIA                0x2801
  115. #define LANGUAGE_ARABIC_JORDAN                0x2C01
  116. #define LANGUAGE_ARABIC_LEBANON             0x3001
  117. #define LANGUAGE_ARABIC_KUWAIT                0x3401
  118. #define LANGUAGE_ARABIC_UAE                 0x3801
  119. #define LANGUAGE_ARABIC_BAHRAIN             0x3C01
  120. #define LANGUAGE_ARABIC_QATAR                0x4001
  121. #define LANGUAGE_ARMENIAN                    0x042B
  122. #define LANGUAGE_ASSAMESE                    0x044D
  123. #define LANGUAGE_AZERI                        0x002C  /* primary only, not a locale! */
  124. #define LANGUAGE_AZERI_LATIN                0x042C
  125. #define LANGUAGE_AZERI_CYRILLIC             0x082C
  126. #define LANGUAGE_BASQUE                     0x042D
  127. #define LANGUAGE_BELARUSIAN                 0x0423
  128. #define LANGUAGE_BENGALI                    0x0445
  129. #define LANGUAGE_BULGARIAN                    0x0402
  130. #define LANGUAGE_BURMESE                    0x0455
  131. #define LANGUAGE_CATALAN                    0x0403
  132. #define LANGUAGE_CHINESE                    0x0004  /* primary only, not a locale! */
  133. #define LANGUAGE_CHINESE_TRADITIONAL        0x0404
  134. #define LANGUAGE_CHINESE_SIMPLIFIED         0x0804
  135. #define LANGUAGE_CHINESE_HONGKONG            0x0C04
  136. #define LANGUAGE_CHINESE_SINGAPORE            0x1004
  137. #define LANGUAGE_CHINESE_MACAU                0x1404
  138. #define LANGUAGE_CZECH                        0x0405
  139. #define LANGUAGE_DANISH                     0x0406
  140. #define LANGUAGE_DUTCH                        0x0413
  141. #define LANGUAGE_DUTCH_BELGIAN                0x0813
  142. #define LANGUAGE_ENGLISH                    0x0009  /* primary only, not a locale! */
  143. #define LANGUAGE_ENGLISH_US                 0x0409
  144. #define LANGUAGE_ENGLISH_UK                 0x0809
  145. #define LANGUAGE_ENGLISH_AUS                0x0C09
  146. #define LANGUAGE_ENGLISH_CAN                0x1009
  147. #define LANGUAGE_ENGLISH_NZ                 0x1409
  148. #define LANGUAGE_ENGLISH_EIRE                0x1809
  149. #define LANGUAGE_ENGLISH_SAFRICA            0x1C09
  150. #define LANGUAGE_ENGLISH_JAMAICA            0x2009
  151. #define LANGUAGE_ENGLISH_CARRIBEAN            0x2409
  152. #define LANGUAGE_ENGLISH_BELIZE             0x2809
  153. #define LANGUAGE_ENGLISH_TRINIDAD            0x2C09
  154. #define LANGUAGE_ENGLISH_ZIMBABWE            0x3009
  155. #define LANGUAGE_ENGLISH_PHILIPPINES        0x3409
  156. #define LANGUAGE_ESTONIAN                    0x0425
  157. #define LANGUAGE_FAEROESE                    0x0438
  158. #define LANGUAGE_FARSI                        0x0429
  159. #define LANGUAGE_FINNISH                    0x040B
  160. #define LANGUAGE_FRENCH                     0x040C
  161. #define LANGUAGE_FRENCH_BELGIAN             0x080C
  162. #define LANGUAGE_FRENCH_CANADIAN            0x0C0C
  163. #define LANGUAGE_FRENCH_SWISS                0x100C
  164. #define LANGUAGE_FRENCH_LUXEMBOURG            0x140C
  165. #define LANGUAGE_FRENCH_MONACO                0x180C
  166. #define LANGUAGE_FRENCH_WEST_INDIES            0x1C0C
  167. #define LANGUAGE_FRENCH_REUNION                0x200C
  168. #define LANGUAGE_FRENCH_ZAIRE                0x240C
  169. #define LANGUAGE_FRENCH_SENEGAL                0x280C
  170. #define LANGUAGE_FRENCH_CAMEROON            0x2C0C
  171. #define LANGUAGE_FRENCH_COTE_D_IVOIRE          0x300C
  172. #define LANGUAGE_FRENCH_MALI                   0x340C
  173. #define LANGUAGE_FRISIAN_NETHERLANDS        0x0462
  174. #define LANGUAGE_GAELIC_SCOTLAND               0x043C
  175. #define LANGUAGE_GAELIC_IRELAND                0x083C
  176. #define LANGUAGE_GALICIAN                    0x0456
  177. #define LANGUAGE_GEORGIAN                     0x0437
  178. #define LANGUAGE_GERMAN                     0x0407
  179. #define LANGUAGE_GERMAN_SWISS                0x0807
  180. #define LANGUAGE_GERMAN_AUSTRIAN            0x0C07
  181. #define LANGUAGE_GERMAN_LUXEMBOURG            0x1007
  182. #define LANGUAGE_GERMAN_LIECHTENSTEIN        0x1407
  183. #define LANGUAGE_GREEK                        0x0408
  184. #define LANGUAGE_GUJARATI                    0x0447
  185. #define LANGUAGE_HEBREW                     0x040D
  186. #define LANGUAGE_HINDI                        0x0439
  187. #define LANGUAGE_HUNGARIAN                    0x040E
  188. #define LANGUAGE_ICELANDIC                    0x040F
  189. #define LANGUAGE_INDONESIAN                 0x0421
  190. #define LANGUAGE_ITALIAN                    0x0410
  191. #define LANGUAGE_ITALIAN_SWISS                0x0810
  192. #define LANGUAGE_JAPANESE                    0x0411
  193. #define LANGUAGE_KANNADA                    0x044B
  194. #define LANGUAGE_KASHMIRI                    0x0460
  195. #define LANGUAGE_KASHMIRI_INDIA             0x0860
  196. #define LANGUAGE_KAZAK                        0x043F
  197. #define LANGUAGE_KHMER                        0x0453
  198. #define LANGUAGE_KIRGHIZ                    0x0440
  199. #define LANGUAGE_KONKANI                    0x0457
  200. #define LANGUAGE_KOREAN                     0x0412
  201. #define LANGUAGE_KOREAN_JOHAB                0x0812
  202. #define LANGUAGE_LAO                        0x0454
  203. #define LANGUAGE_LATVIAN                    0x0426
  204. #define LANGUAGE_LITHUANIAN                 0x0427
  205. #define LANGUAGE_LITHUANIAN_CLASSIC         0x0827
  206. #define LANGUAGE_MACEDONIAN                 0x042F
  207. #define LANGUAGE_MALAY                        0x003E  /* primary only, not a locale! */
  208. #define LANGUAGE_MALAY_MALAYSIA             0x043E
  209. #define LANGUAGE_MALAY_BRUNEI_DARUSSALAM    0x083E
  210. #define LANGUAGE_MALAYALAM                    0x044C
  211. #define LANGUAGE_MALTESE                    0x043A
  212. #define LANGUAGE_MANIPURI                    0x0458
  213. #define LANGUAGE_MARATHI                    0x044E
  214. #define LANGUAGE_MONGOLIAN                    0x0450
  215. #define LANGUAGE_NEPALI                     0x0461
  216. #define LANGUAGE_NEPALI_INDIA                0x0861
  217. #define LANGUAGE_NORWEGIAN                    0x0014  /* primary only, not a locale! */
  218. #define LANGUAGE_NORWEGIAN_BOKMAL            0x0414
  219. #define LANGUAGE_NORWEGIAN_NYNORSK            0x0814
  220. #define LANGUAGE_ORIYA                        0x0448
  221. #define LANGUAGE_POLISH                     0x0415
  222. #define LANGUAGE_PORTUGUESE                 0x0816
  223. #define LANGUAGE_PORTUGUESE_BRAZILIAN        0x0416
  224. #define LANGUAGE_PUNJABI                    0x0446
  225. #define LANGUAGE_RHAETO_ROMAN                0x0417
  226. #define LANGUAGE_ROMANIAN                    0x0418
  227. #define LANGUAGE_ROMANIAN_MOLDOVA           0x0818
  228. #define LANGUAGE_RUSSIAN                    0x0419
  229. #define LANGUAGE_RUSSIAN_MOLDOVA            0x0819
  230. #define LANGUAGE_SAMI_LAPPISH                0x043B
  231. #define LANGUAGE_SANSKRIT                    0x044F
  232. #define LANGUAGE_SERBIAN                    0x001A  /* primary only, not a locale! */
  233. #define LANGUAGE_CROATIAN                    0x041A
  234. #define LANGUAGE_SERBIAN_LATIN                0x081A
  235. #define LANGUAGE_SERBIAN_CYRILLIC            0x0C1A
  236. #define LANGUAGE_SESOTHO                    0x0430
  237. #define LANGUAGE_SINDHI                     0x0459
  238. #define LANGUAGE_SLOVAK                     0x041B
  239. #define LANGUAGE_SLOVENIAN                    0x0424
  240. #define LANGUAGE_SORBIAN                    0x042E
  241. #define LANGUAGE_SPANISH                    0x040A
  242. #define LANGUAGE_SPANISH_MEXICAN            0x080A
  243. #define LANGUAGE_SPANISH_MODERN             0x0C0A
  244. #define LANGUAGE_SPANISH_GUATEMALA            0x100A
  245. #define LANGUAGE_SPANISH_COSTARICA            0x140A
  246. #define LANGUAGE_SPANISH_PANAMA             0x180A
  247. #define LANGUAGE_SPANISH_DOMINICAN_REPUBLIC 0x1C0A
  248. #define LANGUAGE_SPANISH_VENEZUELA            0x200A
  249. #define LANGUAGE_SPANISH_COLOMBIA            0x240A
  250. #define LANGUAGE_SPANISH_PERU                0x280A
  251. #define LANGUAGE_SPANISH_ARGENTINA            0x2C0A
  252. #define LANGUAGE_SPANISH_ECUADOR            0x300A
  253. #define LANGUAGE_SPANISH_CHILE                0x340A
  254. #define LANGUAGE_SPANISH_URUGUAY            0x380A
  255. #define LANGUAGE_SPANISH_PARAGUAY            0x3C0A
  256. #define LANGUAGE_SPANISH_BOLIVIA            0x400A
  257. #define LANGUAGE_SPANISH_EL_SALVADOR        0x440A
  258. #define LANGUAGE_SPANISH_HONDURAS            0x480A
  259. #define LANGUAGE_SPANISH_NICARAGUA            0x4C0A
  260. #define LANGUAGE_SPANISH_PUERTO_RICO        0x500A
  261. #define LANGUAGE_SWAHILI                    0x0441
  262. #define LANGUAGE_SWEDISH                    0x041D
  263. #define LANGUAGE_SWEDISH_FINLAND            0x081D
  264. #define LANGUAGE_TAJIK                        0x0428
  265. #define LANGUAGE_TAMIL                        0x0449
  266. #define LANGUAGE_TATAR                        0x0444
  267. #define LANGUAGE_TELUGU                     0x044A
  268. #define LANGUAGE_THAI                        0x041E
  269. #define LANGUAGE_TIBETAN                    0x0451
  270. #define LANGUAGE_TSONGA                        0x0431
  271. #define LANGUAGE_TSWANA                        0x0432
  272. #define LANGUAGE_TURKISH                    0x041F
  273. #define LANGUAGE_TURKMEN                    0x0442
  274. #define LANGUAGE_UKRAINIAN                    0x0422
  275. #define LANGUAGE_URDU                        0x0020  /* primary only, not a locale! */
  276. #define LANGUAGE_URDU_PAKISTAN                0x0420
  277. #define LANGUAGE_URDU_INDIA                 0x0820
  278. #define LANGUAGE_UZBEK                        0x0043  /* primary only, not a locale! */
  279. #define LANGUAGE_UZBEK_LATIN                0x0443
  280. #define LANGUAGE_UZBEK_CYRILLIC             0x0843
  281. #define LANGUAGE_VENDA                         0x0433
  282. #define LANGUAGE_VIETNAMESE                 0x042A
  283. #define LANGUAGE_WELSH                         0x0452
  284. #define LANGUAGE_XHOSA                         0x0434
  285. #define LANGUAGE_ZULU                         0x0435
  286. #define LANGUAGE_USER1                        0x0201
  287. #define LANGUAGE_USER2                        0x0202
  288. #define LANGUAGE_USER3                        0x0203
  289. #define LANGUAGE_USER4                        0x0204
  290. #define LANGUAGE_USER5                        0x0205
  291. #define LANGUAGE_USER6                        0x0206
  292. #define LANGUAGE_USER7                        0x0207
  293. #define LANGUAGE_USER8                        0x0208
  294. #define LANGUAGE_USER9                        0x0209
  295.  
  296. /*! use only for import/export of MS documents, number formatter maps it to */
  297. /*! LANGUAGE_SYSTEM and then to effective system language */
  298. #define LANGUAGE_SYSTEM_DEFAULT             0x0800
  299.  
  300. /*! use only for import/export of MS documents, number formatter maps it to */
  301. /*! LANGUAGE_SYSTEM and then to effective system language */
  302. #define LANGUAGE_PROCESS_OR_USER_DEFAULT    0x0400
  303.  
  304. #endif /*_LANG_HXX */
  305.  
  306.